<?php
namespace app\common;

use think\Controller;

class Compent extends Controller
{
    
    public function organizeDepart() {
		$sql = "select od.ID, pt.DEPART, od.PARENT_ID, od.POSITION 
		  	  from  T_ORGANIZE_DEPART od
			  inner join (
				select ID, DEPART from T_ORGANIZE_DEPART where PARENT_ID = 0
			  ) pt on od.PARENT_ID = pt.ID
			  where od.PARENT_ID > 1
			  order by weight";
		$Emodel = new Emodel();
		return $Emodel->query($sql);
	}

	public function gradeList() {
		return gradeList();
	}

}
